package com.yfqy.admin.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 *
 */
@Data
@TableName(value = "sys_role")
public class SysRole {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 角色英文名称
     */
    @TableField(value = "role_code")
    private String roleCode;

    /**
     * 角色中文名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 1-管理员, 0-user
     */
    @TableField(value = "is_admin")
    private Byte isAdmin;

    /**
     * 1-正常，0-禁用
     */
    @TableField(value = "status")
    private Byte status;

    /**
     *
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     *
     */
    @TableField(value = "created_by")
    private Long createdBy;

    /**
     *
     */
    @TableField(value = "modified_time")
    private Date modifiedTime;

    /**
     *
     */
    @TableField(value = "modified_by")
    private Long modifiedBy;

}